module game
{
	export class ColorConst
	{
		public constructor()
		{
		}

		public static red = 0xff0000;
		public static blue = 0x000fff;
		public static yellow = 0xffff00;
		public static purple = 0x65007f;
		public static green = 0x32d30a;
		public static brown = 0xdb7704;

		/**获取对应 */
		public static getColor(type:number):number
		{
			let color = 0;
			switch(type)
			{
				case PopType.red:
					color = this.red;
					break;
				case PopType.blue:
					color = this.blue;
					break;
				case PopType.yellow:
					color = this.yellow;
					break;
				case PopType.purple:
					color = this.purple;
					break;
				case PopType.green:
					color = this.green;
					break;
				case PopType.brown:
					color = this.brown;
					break;
			}

			return color;
		}
	}
}